package cn.wizzer.app.web.commons.utils;

import cn.wizzer.app.sys.modules.services.SysIPTablesService;
import cn.wizzer.framework.util.IPTableUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

@IocBean(name =  "iPTableUtil")
public class IPTableUtilImpl extends IPTableUtil {
    @Reference
    @Inject
    private SysIPTablesService sysIPTablesService;

    @Override
    public boolean contains(String ip) {
        ipTables = sysIPTablesService.queryAll();
        return super.contains(ip);
    }
}
